package com.sxf.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.sxf.dao.TermTaxonomyDAO;
import com.sxf.domain.TermTaxonomy;
import com.sxf.service.TermTaxonomyService;

@Service("termTaxonomyService")
public class TermTaxonomyServiceImpl implements TermTaxonomyService {

	@Resource(name = "termTaxonomyDAO")
	private TermTaxonomyDAO dao;

	@Override
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
	public int insert(TermTaxonomy info) {
		// TODO Auto-generated method stub
		return dao.insert(info);
	}

	@Override
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
	public int update(TermTaxonomy info) {
		// TODO Auto-generated method stub
		return dao.update(info);
	}

	@Override
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
	public int delete(TermTaxonomy info) {
		// TODO Auto-generated method stub
		return dao.delete(info);
	}

}
